<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <h3 class="panel-title">添加商家</h3>
        </div>
        <div class="panel-body">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">店铺名称:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-store_name" class="form-control" name="row[store_name]" type="text" placeholder="请输入店铺名称" data-rule="required">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">联系电话:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-phone" class="form-control" name="row[phone]" type="text" placeholder="请输入联系电话" data-rule="required;mobile">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">登录密码:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-password" class="form-control" name="row[password]" type="password" placeholder="请输入登录密码" data-rule="required;length(6~30)">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">店铺地址:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-address" class="form-control" name="row[address]" type="text" placeholder="请输入店铺地址">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">状态:</label>
                <div class="col-xs-12 col-sm-8">
                    <select id="c-status" class="form-control selectpicker" name="row[status]">
                        <option value="1" selected>正常</option>
                        <option value="0">禁用</option>
                    </select>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>